🔄 Transaction
The Transaction action represents a transactional block in your workflow, where multiple operations can be executed as a single atomic unit. This means all actions inside the transaction either complete successfully together or are rolled back if any action fails, ensuring data consistency and integrity.
Features​
- Groups multiple workflow actions into a single transactional unit.
- Supports commit and rollback mechanisms for error handling.
- Ensures data integrity across multiple related operations.
- Visualizes the transactional boundary clearly in the workflow editor.
Use Cases​
- Perform complex database updates that must either fully succeed or fail.
- Manage financial operations requiring atomicity, such as transfers or payments.
- Handle batch processing tasks with error recovery.
- Ensure consistent state changes in multi-step workflows.
Notes​
- All actions within the transaction block are treated as a single unit.
- If any action fails, the transaction can be rolled back to maintain consistency.
- Use transactions judiciously to avoid long locks or performance bottlenecks.
- The transaction action typically includes commit and rollback controls.
Tip: Use the Transaction action to safeguard critical data operations and maintain workflow reliability.